<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <title>拉萨市财政局投资评审管理系统  </title>
  <link rel="stylesheet" href="css/style.css">
  <script src="js/jquery-1.10.2.min.js"></script>

</head>
<body>
<!--main-header start-->
<div class="main-header">
  <div class="w-1200 clearfix">
    <div class="header-logo fl"><a href=""><img src="images/logo.png"></a> </div>
    <!--header-person start-->
    <div id="head_login"></div>
    <script type="text/javascript">
      
      $("#head_login").load("login_common.html");
    </script>
    <!--header-person end-->
    <!--header-nav start-->
    <div class="header-nav fr">
      <ul class="nav">
        <li><a href="/sluserindex.html">待审核项目</a> </li>
        <li class="on"><a href="/slindexdone.html">新已审核项目</a> </li>
        <span id="art"></span>
        <script>$("#art").load("artcommon.html")</script> 
      </ul>
    </div>
    <!--header-nav end-->
  </div>
</div>
<!--main-header end-->
<!--head-search start-->
<div id="mainbox">
  <div id="sbox"></div>

  <script>$("#sbox").load("search.html")</script>
<!--head-search end-->
<script src="js/jquery.selectlist.js"></script>
<script type="text/javascript">
 
</script>
<!--project-list start-->
<div class="project-list w-1200">
  <!--project-list-head start-->
  <div class="project-list-head clearfix">
    <div class="project-list-li w-110 fl">立项文号</div>
    <div class="project-list-li w-200 fl">项目名称</div>
    <div class="project-list-li w-130 fl">所属业主</div>
    <div class="project-list-li w-130 fl">评审类别</div>
    <div class="project-list-li w-130 fl">行业分类</div>
    <div class="project-list-li w-130 fl">提交时间</div>
    <div class="project-list-li w-130 fl">状态</div>
    <div class="project-list-li w-160 fl">操作</div>
  </div>
  <!--project-list-head end-->
  <!--project-list-item start-->
  <div id="list">
  
  </div>
  <!--project-list-item end-->
  <!--project-list-item start-->
  <!--project-list-item end-->
  <!--project-list-item start-->
  <!--project-list-item end-->
  <!--main-pages start-->
  <div class="main-pages" id="page">
   
  </div>
  <!--main-pages end-->
</div>
</div>
<!--project-list end-->
<script src="js/auth.js"></script>

<script>

function loadpage(p){

var owner = getQueryString2("owner");
var lxnumber = getQueryString2("lxnumber");

var name = getQueryString2("name");

var wtdw = getQueryString("wtdw");

var industry = getQueryString2("industry");

var addtime = getQueryString("addtime")+ " 00:00:00";
var bzjg = getQueryString("bzjg");
var lxr = getQueryString2("wtdwlxr");
var pslb=getQueryString2("pslb");

	$.get("/api/Sly/approvelist?st=done&page="+p+"&owner="+owner+"&lxnumber="+lxnumber+
        "&name="+name+"&wtdw="+wtdw+"&bzjg="+bzjg+"&addtime="+addtime+"&industry="+industry+"&pslb="+pslb,function(res){
	var list = "";

		$.each(res.result.list,function(k,v){
            var status = getstatus(v.status);
        list+=`<div class="project-list-item clearfix">
          <div class="project-list-li w-110 fl">`+v.lxnumber+`</div>
          <div class="project-list-li w-200 fl">`+v.name+`</div>
          <div class="project-list-li w-130 fl">`+v.owner+`</div>
          <div class="project-list-li w-130 fl">`+v.type+`</div>
          <div class="project-list-li w-130 fl">`+v.industry+`</div>
          <div class="project-list-li w-130 fl">`+timestampToTime(v.addTime)+`</div>
          <div class="project-list-li w-130 fl"><span class=" color-blue">`+status+`</span> </div>
          <div class="project-list-li w-160 fl">
          <a class="project-list-but exa" href=`+HTTP_HOST+`slyapprove.html?id=`+v.id+`>查看详情</a></div> </div>`;
          
          });

          $("#list").html(list);
          $("#pg").html(res.result.pg);



        });


}

loadpage(1);


function jumpage(p,size){
  loadpage(p);
    }



    function search(){
        var owner = $("#owner").val();
        var lxnumber = $("#lxnumber").val();
        var name = $("#name").val();
        var wtdw = $("#wtdw").val();
        var bzjg = $("#bzjg").val();
        var addtime = $("#addtime").val();
        var industry = $("input[name='industry']").val();
        // loadpage(1,owner);
        window.location.href="/sluserindexdone.html?owner="+owner+"&lxnumber="+lxnumber+
        "&name="+name+"&wtdw="+wtdw+"&bzjg="+bzjg+"&industry="+industry;
    }










</script>
</body>
</html>
